home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Enlighten DSM 1.1
/
SGI EnlightenDSM 1.1.iso
/
sol2x
/
common.z
/
common
/
scripts
/
user.rc
Wrap
Text File
|
1998-06-30
|
927b
|
52 lines
#
# Copyright (c) 1990-1998 Enlighten Software Solutions, Inc.
# -- All Rights Reserved --
#
# Arg 1: gecos (realname, telephone, office)
# Arg 2: home directory
# Arg 3: uid
# Arg 4: gid
# Arg 5: shell
# Arg 6: login name
# NOTE: if the parameter CREATEHOMEDIR == 0
# then the home directory may not exist when
# this script executes
if test -d $2 ; then
DIR=/etc/skel
if test -d $DIR ; then
cd $DIR
for i in local.*
do
/bin/cp $i "$2"/`echo $i | /bin/sed -e 's/local//'`
done
fi
FILES=`ls -ac $DIR | egrep -v "^local"`
for i in $FILES
do
if test "$i" != "." -a "$i" != ".." ; then
if test ! -f ""$2"/$i" ; then
/bin/cp "$i" "$2"
fi
fi
done
if test -n "$OPENWINHOME" ; then
for i in openwin-init openwin-menu
do
if test -f "$OPENWINHOME/lib/$i" ; then
if test ! -f "$2"/.$i ; then
/bin/cp "$OPENWINHOME/lib/$i" ""$2"/.$i"
fi
fi
done
fi
fi
exit 0